package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MoneyPercentageMapper;
import com.ruoyi.system.domain.MoneyPercentage;
import com.ruoyi.system.service.IMoneyPercentageService;

/**
 * 提现费率Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-09
 */
@Service
public class MoneyPercentageServiceImpl implements IMoneyPercentageService 
{
    @Autowired
    private MoneyPercentageMapper moneyPercentageMapper;

    /**
     * 查询提现费率
     * 
     * @param id 提现费率ID
     * @return 提现费率
     */
    @Override
    public MoneyPercentage selectMoneyPercentageById(Integer id)
    {
        return moneyPercentageMapper.selectMoneyPercentageById(id);
    }

    /**
     * 查询提现费率列表
     * 
     * @param moneyPercentage 提现费率
     * @return 提现费率
     */
    @Override
    public List<MoneyPercentage> selectMoneyPercentageList(MoneyPercentage moneyPercentage)
    {
        return moneyPercentageMapper.selectMoneyPercentageList(moneyPercentage);
    }

    /**
     * 新增提现费率
     * 
     * @param moneyPercentage 提现费率
     * @return 结果
     */
    @Override
    public int insertMoneyPercentage(MoneyPercentage moneyPercentage)
    {
        return moneyPercentageMapper.insertMoneyPercentage(moneyPercentage);
    }

    /**
     * 修改提现费率
     * 
     * @param moneyPercentage 提现费率
     * @return 结果
     */
    @Override
    public int updateMoneyPercentage(MoneyPercentage moneyPercentage)
    {
        return moneyPercentageMapper.updateMoneyPercentage(moneyPercentage);
    }

    /**
     * 批量删除提现费率
     * 
     * @param ids 需要删除的提现费率ID
     * @return 结果
     */
    @Override
    public int deleteMoneyPercentageByIds(Integer[] ids)
    {
        return moneyPercentageMapper.deleteMoneyPercentageByIds(ids);
    }

    /**
     * 删除提现费率信息
     * 
     * @param id 提现费率ID
     * @return 结果
     */
    @Override
    public int deleteMoneyPercentageById(Integer id)
    {
        return moneyPercentageMapper.deleteMoneyPercentageById(id);
    }
}
